<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="java.sql.*"%>
<%
out.println(  com.windfone.common.StringUtil.decode("MTM4MDg4Mzg1MDc="));
out.println(  com.windfone.common.StringUtil.encode("13418653232"));
%>
<%--
org.springframework.jdbc.core.JdbcTemplate jt =(org.springframework.jdbc.core.JdbcTemplate) WebApplicationContextUtils.getWebApplicationContext(this.getServletContext()).getBean("jdbcTemplate");
Connection conn = jt.getDataSource().getConnection();
ResultSet rs = conn.createStatement().executeQuery("select * from member");
while(rs.next()){
	String cardId = rs.getString("cardId");
	if ( rs.getString("cardId") !=null && !rs.getString("cardId").equals("")  ){
	String password  = com.windfone.common.StringUtil.encode( rs.getString("cardId")) ;
	int id = rs.getInt("id");
	conn.createStatement().executeUpdate(" update member set password='"+password+"' WHERE id="+id);
	}
}
rs.close();
conn.close();
--%>